package com.fz.View;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.View;

public class MyView extends View {
	private Paint paint;

	public MyView(Context context) {
		super(context);
		paint=new Paint();
		paint.setAntiAlias(true);
	}
	@Override
	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		super.onMeasure(widthMeasureSpec, heightMeasureSpec);
		int w=MeasureSpec.getSize(widthMeasureSpec);
		int h=MeasureSpec.getSize(heightMeasureSpec);
		setMeasuredDimension(w, h);
	}
	@Override
	protected void onDraw(Canvas canvas) {
		super.onDraw(canvas);
	}

}
